home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8491 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mail2news.demon.co.uk!tsys.demon.co.uk
  2. From: Tom Wheeley <tomw@tsys.demon.co.uk>
  3. Newsgroups: comp.lang.pascal.misc,comp.lang.pascal.borland,comp.programming,comp.lang.misc,comp.lang.c,comp.lang.c++
  4. Subject: Re: Writing an expression evaluator
  5. Date: Fri, 16 Feb 96 22:07:05 GMT
  6. Organization: City Zen FM
  7. Message-ID: <824508425snz@tsys.demon.co.uk>
  8. References: <311FEBD8.7305@cnj.digex.net> <4g19rq$288@inferno.mpx.com.au>
  9. Reply-To: tomw@tsys.demon.co.uk
  10. X-NNTP-Posting-Host: tsys.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.30
  12. X-Sig-By: Tomsystems Quote v1.2.  (c)1996 Tom Wheeley, tomw@tsys.demon.co.uk
  13. X-Mail2News-Path: tsys.demon.co.uk
  14.  
  15. In article <4g19rq$288@inferno.mpx.com.au>
  16.            mjsmith@mpx.com.au "Malcolm Smith" writes:
  17.  
  18. > I have an expression evaluator written in C based on Polish notation.
  19. > It was primarily designed for normal mathemtical functions such as
  20. > add, subtract, multiply and divide.  It does, however, manager
  21. > brackets - using recursion.
  22.  
  23. That's cheating isn't it ?  r.p.n is a doddle to code :)
  24.  
  25. If you are doing this in Pascal (First in your newsgroups line) then check
  26. out SWAG, which has several infix parsers (how you write math. expressions
  27. in your code).
  28.  
  29. SWAG is big though, but it is a superlative programming resource.  It is
  30. accessible from the clpb mini-FAQ (sorry, con't remember the swag url)
  31. that FAQ is also on the Web at:
  32.  
  33. http://www.geocities.com/TimesSquare/2678/clpbfaq.html
  34. -- 
  35. * TQ 1.0 * The 'Just So Quotes'.
  36. "Waiter, there's no fly in my soup!"
  37.         -- Kermit the frog
  38.